package com.tensquare.raddit.costomer;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;


@Component
@RabbitListener(queues = "xiaohua")
public class Customer3 {

    @RabbitHandler
    public  void getMsg(String msg){
        System.out.println("xiaohua"+msg);
    }
}
